<?php 
require_once '../include.php';
checkLogined();
$act=$_REQUEST['act'];
@$id=$_REQUEST['id'];
$PdoMySQL=new PdoMySQL;
date_default_timezone_set('PRC');
if($act=="logout"){
	logout();
}elseif($act=="addAdmin"){
	$mes=addAdmin($PdoMySQL);
}elseif($act=="editAdmin"){
	$mes=editAdmin($id);
}elseif($act=="delAdmin"){
	$mes=delAdmin($id);
}elseif($act=="addCate"){
	$mes=addCate();
}elseif($act=="editCate"){
	$mes=editCate($id);
}elseif($act=="delCate"){
	$mes=delCate($id);
}elseif($act=="addPro"){
	$mes=addPro();
}elseif($act=="editPro"){
	$mes=editPro($id);
}elseif($act=="delPro"){
	$mes=delPro($id);
}elseif($act=="delAlbumById"){
	return delAlbumById();
}elseif ($act=="checkAdmin") {
	return checkAdmin();
}elseif ($act=="checkCate") {
	return checkCate();
}elseif ($act=="addCustomer") {
	$mes=addCustomer();
}elseif ($act=="getCustomerByPage") {
	$mes=getCustomerByPage();
}elseif ($act=="editCustomer") {
	$mes=editCustomer($id);
}elseif($act=="delCustomer"){
	$mes=delCustomer($id);
}elseif($act=="delMess"){
	$mes=delMess($id);
}elseif($act=="addConCate"){
	$mes=addConCate();
}elseif($act=="delConCate"){
	$mes=delConCate($id);
}elseif ($act=="editConCate") {
	$mes=editConCate($id);
}elseif($act=="addConsult"){
	$mes=addConsult();
}elseif($act=="editConsult"){
	$mes=editConsult($id);
}elseif($act=="delConsult"){
	$mes=delConsult($id);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<?php 
	if($mes){
		echo $mes;
	}
?>
</body>
</html>